package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author: Allen chen
 * @Date 2020/8/21
 * @Description:
 */
@Data
@ApiModel(value = "自定义可用库存数据VO", description = "可用库存数据信息")
public class UsefulInventoryVO implements Serializable {


    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "库存code")
    private String code;

    @ApiModelProperty(value = "货主code")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "仓库code")
    private String warehouseCode;

    @ApiModelProperty(value = "库区code")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "库区code")
    private String location;

    @ApiModelProperty(value = "原库区code")
    private String oldLocation;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "占用数量")
    private BigDecimal useQuantity;

    @ApiModelProperty(value = "批次号")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    private String receiveLot;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatusName;

    @ApiModelProperty(value = "商品code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "锁定状态")
    private Integer isLock;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品单位")
    private String goodsUnit;

    @ApiModelProperty(value = "商品单位")
    private String unitName;

    @ApiModelProperty(value = "保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "库位名称")
    private String name;

    @ApiModelProperty(value = "库位编码")
    private String locationSerialNumber;

    @ApiModelProperty(value = "所属库区code")
    private String spaceCode;

    @ApiModelProperty(value = "库位出入库锁")
    private String ioLock;

    @ApiModelProperty(value = "拣货动线号（库位表属性）")
    private Integer pickNumber;

    @ApiModelProperty(value = "可用库存（总库存-使用库存）")
    private Integer canUseQuantity;

    @ApiModelProperty(value = "临时库存关联的原库存单号，用于返还库存使用")
    private String oldInventoryCode;

    @ApiModelProperty(value = "库存商品是否可发货；0：是；1：否；")
    private String isConsignment;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "所属机构code")
    private String groupCode;

    @ApiModelProperty(value = "库存容器号，从库存中带出，由于周转箱号不会保存到库存中，所以这个字段有值则说明是托盘号；")
    private String containerBarCode;

}
